package com.cloud.controller.data.login;

import com.cloud.base.annotation.NeedSetValue;
import com.cloud.service.user.UserService;
import lombok.Data;

@Data
public class UserData {
    Long userId;
    @NeedSetValue(id = "getById", beanClass = UserService.class, method = "getById", param = "userId", value = "userName")
    String userName;
    @NeedSetValue(ref = "getById", value = "age", param = "userId")
    Integer age;
    @NeedSetValue(ref = "getById", value = "userRole", param = "userId")
    String userRole;
}
